package com.qj.daibei.service.impl;

import com.qj.daibei.mapper.RepaymentMapper;
import com.qj.daibei.pojo.Repayment;
import com.qj.daibei.service.RepaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * author wml
 * Created on 2021/10/26 22:29
 */
@Service
public class RepaymentServiceImpl implements RepaymentService {

    @Autowired
    private RepaymentMapper repaymentMapper;

    @Override
    public boolean insertRepayment(Repayment repayment) {
        return this.repaymentMapper.insertRepayment(repayment);
    }

    @Override
    public int insertRepaymentByBatch(List repaymentList) {
        return this.repaymentMapper.insertRepaymentByBatch(repaymentList);
    }
}
